﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace NCS.DeviceManager.Models.Entities
{
    [Table("tbl_access")]
    public class AccessEntity : BaseEntity
    {
        /// <summary>
        /// 编码
        /// </summary>
        [Required, MaxLength(255)]
        public string Code { get; set; }
        /// <summary>
        /// 名字
        /// </summary>
        [Required, MaxLength(255)]
        public string Name { get; set; }
        /// <summary>
        /// 所属菜单
        /// </summary>
        [Required]
        public int MenuId { get; set; }
    }
}
